const path = require('path');
function resolve(dir) {
    return path.join(__dirname, dir);
}
module.exports = {
    lintOnSave: false,	// 关闭 eslint 校验
    configureWebpack: {
        resolve: {
            alias: {
                'co': resolve('src/components'),
                'pa': resolve('src/pages'),
                'ut': resolve('src/utils'),
                'asle': resolve('src/assets/less'),
                'asim': resolve('src/assets/img'),
                'asic': resolve('src/assets/icon'),
                'pain': resolve('src/pages/index'),
                'painad': resolve('src/pages/index/admin'),
                'painte': resolve('src/pages/index/teacher'),
            }
        }
    },
    devServer: { port: 8010 }
};